#ifndef PATIENTFILE_H
#define PATIENTFILE_H

#include "newfile.h"
#include "details.h"


#include <QDialog>
#include <QTableWidgetItem>



namespace Ui {
class PatientFile;
}

class PatientFile : public QDialog
{
    Q_OBJECT

public:
    explicit PatientFile(QWidget *parent = nullptr);
    ~PatientFile();

private slots:

    void on_tableWidget_itemClicked(QTableWidgetItem *item);

    void on_deleteBtn_clicked();

    void on_addBtn_clicked();

    void slot_addRecord(QString newName,QString newAge,QString newBirthday,QString newAsseessDay,QString newCheckTimes,QString newId);

    void on_tableWidget_itemDoubleClicked(QTableWidgetItem *item);

    void on_certainBtn_clicked();

    void slot_changeRecord();

private:
    Ui::PatientFile *ui;
    NewFile *newFile;
    int t;
    Details *details;
};

#endif // PATIENTFILE_H
